package kfm.model;

public class Account {
    private String phone;
    private String password;

    public Account(String phone,String password){
        this.phone = phone;
        this.password = password;
    }

    public boolean login(Account account){
        if(this.getPhone().equals(account.getPhone()) && this.getPassword().equals(account.getPassword())){
            return true;
        }
        return false;
    }


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
